/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Taxi.db.dao;

import java.util.Date;



/**
 *
 * @author U24022
 */
public abstract class BaseDAO {
     public String quotate(String content){

        return "'"+content+"'";
    }

     public java.util.Date toDate(java.sql.Date date ){
        Date utilDate = new Date();
        utilDate.setTime(date.getTime());
        return utilDate;
     }

     public String toSQLDateStr(java.util.Date date){
        if(date == null) return null;
        java.sql.Date d = new java.sql.Date(date.getTime());
        return d.toString();
     }
}
